package mysql

import "gorm.io/gorm"

type Product struct {
	gorm.Model
	Title  string  `gorm:"type:varchar(20);comment:商品标题"`
	Price  float64 `gorm:"type:decimal(10,2);comment:商品价格"`
	Info   string  `gorm:"type:varchar(300);comment:商品描述"`
	Image  string  `gorm:"type:varchar(300);comment:商品图片"`
	UserId int64   `gorm:"type:int(11);comment:用户id"`
}
